package cn.ulc.socket.admin.service.goods;

import cn.ulc.common.constant.enums.AvailableStatus;
import cn.ulc.socket.admin.model.dto.goods.GoodsUnitDTO;
import cn.ulc.socket.admin.model.dto.goods.GoodsUnitListDTO;
import cn.ulc.socket.admin.model.param.goods.GoodsUnitSaveParam;

public interface GoodsUnitServ {


    GoodsUnitListDTO findList(String name);

    GoodsUnitDTO findDetail(Long id);

    Boolean save(GoodsUnitSaveParam param);

    Boolean update(Long id, GoodsUnitSaveParam param);

    Boolean deleted(Long id);

    Boolean changeStatus(Long id, AvailableStatus status);

    Boolean changeSort(String type, Long id1, Long id2);

}
